package com.mz.mattress.api.jwt;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminJwt implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer userId;

    // 约定 用户名为admin,超级管理员，拥有最高权限！
    private String username;

    private Long memberId;

    private String nickname;

    // 如果是超级管理员 deptCode=admin
    private String deptCode;

    // 用户角色Id
    private List<Integer> roleIds;

    //  客户端id
    private String clientId;

}
